<?php
require_once("../dbtools.inc.php");
header('Access-Control-Allow-Origin:*');
header('Access-Control-Allow-Headers:*');
header('Content-Type:application/json');
class Response{
	public $code;
	public $message;
	public $data;
	public function returnError(){
		$this->code = 404;
		$this->message = "error";
		echo json_encode($this);
	}
	public function returnData($code,$message,$data){
		$this->code = $code;
		$this->message = $message;
		$this->data = $data;
		echo json_encode($this);
	}
}


?>